package com.lysj.order.customer.vo;

import lombok.Data;
import lombok.Getter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;
import java.util.List;

/**
 * @author Created by drj on 2019-03-07 16:36:33
 * @description 用户订单
 */
@Data
public class CusOrderDetailVo {


    @Getter
    public enum Status {
        PLACEORDER(1, "下单"),
        SUCCESSPAY(2, "支付成功"),
        REFUND(3, "退款");
        private Integer code;

        private String status;

        Status(Integer code, String status) {
            this.code = code;
            this.status = status;
        }
    }

    private String id;//订单id

    private String orderNumber;//订单编号

    private String deskName;//餐桌名称

    private Integer cusAmount;//用餐人数

    private BigInteger foodAmount; //菜份数

    private BigDecimal sumMoney;//合计金额

    private BigDecimal actPayMoney;//实付金额

    private Integer status;//订单状态

    private Integer payWay;//付款方式

    @DateTimeFormat(pattern = "yyyy-MM-dd")//将String转换成Date，一般前台给后台传值时用
    private Date createTime;

    private List<CusOrderItmeDetailVo> orderItmeVoList;


}